--汝须燔烬
local ruxujinfan = fk.CreateSkill {
    name = "mcdh_ruxujinfan",
    tags = {Skill.Lord}
}

ruxujinfan:addEffect(fk.Damage,{
    can_trigger= function (self, event, target, player, data)
        return target and target ~= player and data.to == player and data.damageType  ~= fk.NormalDamage and player:hasSkill(ruxujinfan.name)
    end,
    on_cost=function (self, event, target, player, data)
        local room = player.room
        if  player:isWounded() then
            return room:askToSkillInvoke(target,"#ruxujinfan:"..player.id)
        end
    end,
    on_use=function (self, event, target, player, data)
        local room = player.room
        room:recover{
            who= player,
            num = 2,
            skillName = ruxujinfan.name
        }
    end
})

Fk:loadTranslationTable {
    ["mcdh_ruxujinfan"] = "汝须燔烬",
    [":mcdh_ruxujinfan"] = "主公技，其他角色对你造成属性伤害后，其可以令你回复2点体力。",
    ["#ruxujinfan"] = "汝须燔烬:令 %src 回复2点体力",
}

return ruxujinfan